﻿import request from '/@/utils/request';
enum Api {
  AddPriorityRankingModel = '/api/priorityRankingModel/add',
  DeletePriorityRankingModel = '/api/priorityRankingModel/delete',
  UpdatePriorityRankingModel = '/api/priorityRankingModel/update',
  PagePriorityRankingModel = '/api/priorityRankingModel/page',
  DetailPriorityRankingModel = '/api/priorityRankingModel/detail',
}

// 增加优化模型
export const addPriorityRankingModel = (params?: any) =>
	request({
		url: Api.AddPriorityRankingModel,
		method: 'post',
		data: params,
	});

// 删除优化模型
export const deletePriorityRankingModel = (params?: any) => 
	request({
			url: Api.DeletePriorityRankingModel,
			method: 'post',
			data: params,
		});

// 编辑优化模型
export const updatePriorityRankingModel = (params?: any) => 
	request({
			url: Api.UpdatePriorityRankingModel,
			method: 'post',
			data: params,
		});

// 分页查询优化模型
export const pagePriorityRankingModel = (params?: any) => 
	request({
			url: Api.PagePriorityRankingModel,
			method: 'post',
			data: params,
		});

// 详情优化模型
export const detailPriorityRankingModel = (id: any) => 
	request({
			url: Api.DetailPriorityRankingModel,
			method: 'get',
			data: { id },
		});


